﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace bdnt_pets_system_Entity
{
    [DataContract]
    public class Tbl_FailureInfo : INotifyPropertyChanged
    {
        bool isValidate = true;
        [DataMember]
        public bool IsValidate
        {
            get { return isValidate; }
            set { isValidate = value; }
        }
        Int32 id;
        [DataMember]
        public Int32 Id
        {
            get { return id; }
            set { id = value; }
        }
        string failureNo;
        [DataMember]
        public string FailureNo
        {
            get { return failureNo; }
            set
            {
                failureNo = value;
            }
        }

        string failureName;
        [DataMember]
        public string FailureName
        {
            get { return failureName; }
            set
            {
                failureName = value;
            }
        }
        string en_failureName;
        [DataMember]
        public string en_FailureName
        {
            get { return en_failureName; }
            set
            {
                en_failureName = value;
            }
        }


        string partNo;
        [DataMember]
        public string PartNo
        {
            get { return partNo; }
            set
            {
                partNo = value;
            }
        }

        string partName;
        [DataMember]
        public string PartName
        {
            get { return partName; }
            set
            {
                partName = value;
            }
        }

        string en_partName;
        [DataMember]
        public string en_PartName
        {
            get { return en_partName; }
            set
            {
                en_partName = value;
            }
        }

        string remark;
        [DataMember]
        public string Remark
        {
            get { return remark; }
            set { remark = value; }
        }


        Int32 failureGCount;
        [DataMember]
        public Int32 FailureGCount
        {
            get { return failureGCount; }
            set { failureGCount = value; }
        }

        Int32 failureZCount;
        [DataMember]
        public Int32 FailureZCount
        {
            get { return failureZCount; }
            set { failureZCount = value; }
        }

        Int32 failureDCount;
        [DataMember]
        public Int32 FailureDCount
        {
            get { return failureDCount; }
            set { failureDCount = value; }
        }

        string fC;
        [DataMember]
        public string FC
        {
            get { return fC; }
            set { fC = value; }
        }

        public event PropertyChangedEventHandler PropertyChanged;
        private void OnPropertyChanged(string PropName)
        {
            if (PropertyChanged != null)
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(PropName));
            }
        }
    }
}
